package com.px.chapter_Dec_1.yg;

import com.px.chapter_Dec_1.russianGame.Shape;

import com.px.chapter_Dec_1.russianGame.ShapeFactory;

public class test {
    public static void main(String[] args) {
        Shape shape= ShapeFactory.getShape();
        int[][] ppp=shape.getData();
        ss(ppp);
        shape.rotate();

        ss(ppp);
    }

    private static void ss(int[][] ppp) {
        for (int a = 0; a < ppp.length; a++) {
            for (int c = 0; c < ppp[a].length; c++) {
                System.out.print(ppp[a][c]+"\t");
            }
            System.out.println();
        }
    }
}
